package com.chensj.ws.service;

import com.chensj.ws.model.User;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;

/**
 * @author chensj
 * @title SEI Serice Endpoint Interface  服务提供借口
 * @email chensj@winning.com.cn
 * @package com.chensj.ws.service
 * @date: 2018-12-16 下午7:41
 */
@WebService
public interface IMyService {

    @WebResult(name = "addResult")
    @WebMethod(operationName = "addMethod")
    public int add(@WebParam(name = "a") int a, @WebParam(name = "b") int b);
    @WebResult(name = "minusResult")
    @WebMethod(operationName = "minusMethod")
    public int minus(@WebParam(name = "a") int a,@WebParam(name = "b")int b);
    @WebResult(name = "loginUser")
    @WebMethod(operationName = "loginMethod")
    public User login(@WebParam(name = "username") String username,@WebParam(name = "password") String password);
}
